package project2.entity.weapon;

import project2.entity.Flyable;
import project2.type.CatchableWeaponType;
import project2.ui.game.GamePlayingPanel;

/**
 * 可拾取武器抽象类
 */
public abstract class CatchableWeapon extends Flyable {
    private CatchableWeaponType weaponType;// 类型
    private boolean weaponDisappear;// 是否消失

    public CatchableWeapon(GamePlayingPanel gamePlayingPanel, CatchableWeaponType weaponType) {
        setPlayingPanel(gamePlayingPanel);
        this.weaponType = weaponType;
        this.weaponDisappear = false;
    }

    // get、set方法

    public CatchableWeaponType getWeaponType() {
        return weaponType;
    }

    public void setWeaponType(CatchableWeaponType weaponType) {
        this.weaponType = weaponType;
    }

    public boolean isWeaponDisappear() {
        return weaponDisappear;
    }

    public void setWeaponDisappear(boolean weaponDisappear) {
        this.weaponDisappear = weaponDisappear;
    }

}
